package com.atguigu.exam;

import java.util.ArrayList;
import java.util.Collection;

/**
 * @author xbd
 * @create 2021-05-28 11:09
 */
public class ListTest {
    public static void main(String[] args) {
        Collection c1 = new ArrayList();
        c1.add(122);
        c1.add(false);
        c1.add(456);
        System.out.println(c1);
        Collection c2 = new ArrayList();
        c2.add(12.4);
        c2.add(true);
        c2.add(36.6);
        c1.addAll(c2);
        System.out.println(c1);
        c1.remove(456);
        System.out.println(c1.contains(36.6));
        System.out.println(c2.isEmpty());
        c2.clear();
        System.out.println(c1.size());
    }
}
